﻿@model IEnumerable<EasyScrum.Models.Story>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Title
        </th>
        <th>
            Description
        </th>
        <th>
            ToDo
        </th>
        <th>
            TaskDone
        </th>
       
        <th>
            StoryPoint
        </th>
        <th>
            StoryStatus
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ToDo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TaskDone)
        </td>
      
        <td>
            @Html.DisplayFor(modelItem => item.StoryPoint)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StoryStatus)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.StoryId }) |
            @Html.ActionLink("Details", "Details", new { id=item.StoryId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.StoryId })
        </td>
    </tr>
}

</table>

<div id="taskList">
<h4>Tasks...</h4>
 @Html.Partial("_TaskList")
 </div>